const tokenName = 'heima-news'

export function setToken(token) {
  localStorage.setItem(tokenName, JSON.stringify(token))
}
export function getToken() {
  JSON.parse(localStorage.getItem(tokenName))
}
export function removeToken() {
  localStorage.removeToken(tokenName)
}
